As mentioned earlier, you can create arrays of any fundamental data type, which includes the VECTOR type. Vectors support two methods of accessing the fields of the vector: array-style brackets and dot notation.
will access the second field (the y-component) of the vector in element 5 of the one-dimensional array
vec_field. Two-dimensional arrays can also use this notation; if
vec_field2 is a two-dimensional array, then
will perform the same operation, accessing the second field (the y-component) of the vector in element 5 of
vec_field. Two dimensional arrays work in a similar fashion; the reference